existing fishes.
* babl/babl-fish.c: (fishing_result_examine), (babl_fish):
svn path=/trunk/; revision=245
+2007-11-10 Øyvind Kolås <pippin@gimp.org>
+
+ Do not accept BABL_FISH_REFERENCE as a valid result when fishing for
+ existing fishes.
+
+ * babl/babl-fish.c: (fishing_result_examine), (babl_fish):
+
2007-11-10 Øyvind Kolås <pippin@gimp.org>
* docs/index-static.html.in: documented BABL_STATS environment
(void *) data->destination == (void *) babl->fish.destination)
{
data->ret = babl;
+ /* we do not return BABL_FISH_REFERENCE's since those might exist
+ * even before a valid BABL_FISH_PATH has been constructed for a
+ * given conversion.
+ */
+ if (data->ret->class_type == BABL_FISH_REFERENCE)
+ return 0;
return 1; /* stop iterating */
}
return 0; /* continue iterating */
return NULL;
}
- {
+ if(1){
Babl *lucky;
lucky = go_fishing (source_format, destination_format);
if (lucky)
return lucky;
}
- if (0)
+ if (0) /* do not accept shortcut conversions, since there might be
+ a faster path
+ */
{
Babl *shortcut_conversion;